<script>
    function parse(javaData) {
        let Str = javaData.replace(/"|{|}|\s/g, '')
        let arr = Str.split(',')
        let obj = {}
        arr.forEach(item => {
            let temp = item.split(':')
            obj[temp[0]] = isNaN(Number(temp[1])) ? temp[1] : Number(temp[1])
        })
        return obj
    }
</script>